package com.sugou.model.datas;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Parameter;
import org.hibernate.annotations.Type;

import com.sugou.dao.enums.TF;
import com.sugou.model.core.base.LongIdEntity;

/**
 * 商户类型
 * 
 * @version 1.0 
 * @author Hunk.Tong &copy; Ustudy 游学网络
 * <b>Create Time:</b>2013-5-10 下午5:30:43
 */
@Entity(name="MerchantType")
@Table(name="GW_MERCHANT_TYPE")
public class MerchantType extends LongIdEntity {
	private static final long serialVersionUID = -8654543659612091426L;
	
	@Column(length=100,nullable=false)
	private String name;
	
	@Column(nullable=false)
	private Integer sortNum;
	
	@Column( nullable = false)
	@Type(type = "org.hibernate.type.EnumType", parameters = {
			@Parameter(name = "enumClass", value = "com.ustudy.products.enums.TF"),
			@Parameter(name = "type", value = "-6"/* TINYINT */) })
	private TF used;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getSortNum() {
		return sortNum;
	}

	public void setSortNum(Integer sortNum) {
		this.sortNum = sortNum;
	}

	public TF getUsed() {
		return used;
	}

	public void setUsed(TF used) {
		this.used = used;
	}
}
